home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Macintosh Tracker Folder / Tracker Client Folder / CPauseButton.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-16  |  522 b   |  25 lines  |  [TEXT/KAHL]

  1. /* CPauseButton.c */
  2.  
  3. #include "CPauseButton.h"
  4. #include "LocationConstants.h"
  5. #include "CWindow.h"
  6. #include "CMyDocument.h"
  7.  
  8.  
  9. void                CPauseButton::IPauseButton(CMyDocument* TheDocument, CWindow* TheWindow)
  10.     {
  11.         LongPoint            LocalStart,LocalExtent;
  12.  
  13.         Document = TheDocument;
  14.         GetRect(PlayPauseIconLocID,&LocalStart,&LocalExtent);
  15.         IPicture(LocalStart,LocalExtent,NormalPausePictID,HilitedPausePictID,
  16.             0,0,TheWindow,TheWindow);
  17.     }
  18.  
  19.  
  20. MyBoolean        CPauseButton::DoThang(void)
  21.     {
  22.         Document->DoPause();
  23.         return False;
  24.     }
  25.